<ion-header-bar align-title="center" class="headbar bar-header bar-clear">
    <a nav-direction="back" nav-transition="ios" class="button button-clear icon ion-ios-arrow-left" ng-href="#/account" target="_self"> </a>

    <h1 class="title">驾驾</h1>
    <!--<ion-spinner icon="android" ng-hide="$root.currentUser || $root.loggingIn"></ion-spinner>-->
</ion-header-bar>
<ion-content has-header="true" scroll="true" scrollbar-y="false">
    <ion-list>
        <label class="reg item item-input item-stacked-label"> <span class="input-label">手机号码</span>
            <input style="height:40px;padding: 0px 5px; color:rebeccapurple;" type="text" require
                   ng-model="info.username" placeholder="输入手机号">
        </label>
        <label class="reg item item-input item-stacked-label"> <span class="input-label">姓名</span>
            <input style="height:40px;padding: 0px 5px; color:rebeccapurple;" type="text" require
                   ng-model="info.realname" placeholder="输入姓名">
        </label>
        <!--
        <label class="reg item item-input item-stacked-label"> <span class="input-label">联系电话</span>
            <input style="height:40px;padding: 0px 5px; color:rebeccapurple;" type="number" require ng-model="info.tel"
                   placeholder="输入联系电话">
        </label>
        -->
        <label class="reg item item-input item-stacked-label"> <span class="input-label">密码</span>
            <input style="height:40px;padding: 0px 5px; color:rebeccapurple;" type="password" require
                   ng-model="info.password" placeholder="输入密码">
        </label>
        <label class="reg item item-input item-stacked-label"> <span class="input-label">确认密码</span>
            <input style="height:40px;padding: 0px 5px; color:rebeccapurple;" type="password" require
                   ng-model="info.confixpassword" placeholder="确认密码">
        </label>
        <ul class="list">
            <li class="item item-toggle"
                style="border: none; background: rgba(255, 255, 255, 0.3);margin:10px auto; color: #F4EE30;">
                注册为司机？
                <label class="toggle toggle-royal">
                    <input type="checkbox" ng-model="info.isdriver">

                    <div class="track">
                        <div class="handle"></div>
                    </div>
                </label>
            </li>
        </ul>
        <button class="logining button button-calm button-block" ng-click="register()"> 注册</button>
    </ion-list>
</ion-content>
